package org.jeecg.modules.asset.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 资产台账
 * @Author: jeecg-boot
 * @Date:   2025-11-02
 * @Version: V1.0
 */
@Data
@TableName("asset_ledger")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="asset_ledger对象", description="资产台账")
public class AssetLedger implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private java.lang.String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private java.lang.String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private java.util.Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private java.lang.String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private java.util.Date updateTime;
	/**资产类型*/
	@Excel(name = "资产类型", width = 15, dicCode = "asset_type")
	@Dict(dicCode = "asset_type")
    @ApiModelProperty(value = "资产类型")
    private java.lang.String type;
	/**资产名称*/
	@Excel(name = "资产名称", width = 15)
    @ApiModelProperty(value = "资产名称")
    private java.lang.String name;
	/**使用功能*/
	@Excel(name = "使用功能", width = 15)
    @ApiModelProperty(value = "使用功能")
    private java.lang.String useDesc;
	/**地址/位置*/
	@Excel(name = "地址/位置", width = 15, dictTable = "asset_ledger", dicText = "name", dicCode = "id")
	@Dict(dictTable = "asset_ledger", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "地址/位置")
    private java.lang.String position;
	/**资产状态
     * 运营	1
     * 闲置	2
     * 维修中	3
     * 待租	4
     * 待报废	5
     * */
	@Excel(name = "资产状态", width = 15, dicCode = "asset_status")
	@Dict(dicCode = "asset_status")
    @ApiModelProperty(value = "资产状态")
    private java.lang.String status;
	/**空间类型*/
	@Excel(name = "空间类型", width = 15, dicCode = "asset_build_type")
    @ApiModelProperty(value = "空间类型")
    @Dict(dicCode = "asset_build_type")
    private java.lang.String spaceType;
	/**负责人*/
	@Excel(name = "负责人", width = 15)
    @ApiModelProperty(value = "负责人")
    private java.lang.String chargePerson;
	/**建筑面积（㎡）*/
	@Excel(name = "建筑面积（㎡）", width = 15)
    @ApiModelProperty(value = "建筑面积（㎡）")
    private java.lang.String floorArea;
	/**资产价值*/
	@Excel(name = "资产价值", width = 15)
    @ApiModelProperty(value = "资产价值")
    private java.lang.String price;
	/**资产编码*/
	@Excel(name = "资产编码", width = 15)
    @ApiModelProperty(value = "资产编码")
    private java.lang.String code;
	/**附件*/
	@Excel(name = "附件", width = 15)
    @ApiModelProperty(value = "附件")
    private java.lang.String files;
	/**设备类别*/
	@Excel(name = "设备类别", width = 15, dicCode = "asset_equip_type")
	@Dict(dicCode = "asset_equip_type")
    @ApiModelProperty(value = "设备类别")
    private java.lang.String equiCategory;
	/**出厂日期*/
	@Excel(name = "出厂日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "出厂日期")
    private java.util.Date productionDate;
	/**规格型号*/
	@Excel(name = "规格型号", width = 15)
    @ApiModelProperty(value = "规格型号")
    private java.lang.String model;
	/**制造商*/
	@Excel(name = "制造商", width = 15)
    @ApiModelProperty(value = "制造商")
    private java.lang.String producer;

    @TableLogic
    private String delFlag;
}
